package com.pengpaishuzi.controller;

import com.pengpaishuzi.service.impl.SentinelServiceImpl;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TranceController {

    @Resource
    private SentinelServiceImpl sentinelService;

    @RequestMapping("trace1")
    public String trace1(){
        sentinelService.resourceMethod();
        return "trace1";
    }

    @RequestMapping("trace2")
    public String trace2(){
        sentinelService.resourceMethod();
        return "trace2";
    }

}
